#include "position_t.h"

vector_t operator-(const position_t& p1, const position_t& p2){
	return vector_t(p1.x-p2.x,p1.y-p2.y);
}

position_t operator-(const position_t& p, const vector_t& v){
	return position_t(p.x-v.x,p.y-v.y);
}

position_t operator+(const position_t& p,const vector_t& v){
	return position_t(p.x+v.x,p.y+v.y);
}